package org.xiaoyu.rpc.registry.zookeeper;

import org.xiaoyu.rpc.registry.Discover;
import org.xiaoyu.rpc.registry.DiscoverFactory;

import java.util.Properties;

/**
 * Created By Have
 * 2021/7/14 22:57
 */
public class ZookeeperDiscoverFactory implements DiscoverFactory {
    @Override
    public Discover createDiscover(Properties properties) {
        ZookeeperInstanceWrapper zookeeperInstanceWrapper = new ZookeeperInstanceWrapper(properties);
        return new ZookeeperDiscover(zookeeperInstanceWrapper);
    }
}
